#pragma once
#define _CRT_SECURE_NO_DEPRECATE   //暂时去除 可能会把工程往VS2015上转
#include <thread>
#include <mutex>
#include <string>
#include <vector>
#include <map>
#include <deque>
#include <memory>
#include <algorithm>
#include <functional>
#include <iostream>
#include <fstream> //文件需单独，ca
#include <stdio.h>
#include <time.h>
#include <stdint.h>
#include <memory>  //
#include <windows.h>
#include <stdio.h>
//#include <WinSock2.h>
//#include <string>
#pragma comment(lib,"ws2_32")
//////////////////////////////////////////////////////////////////////////OpenCV version:3.2.0
#include "opencv2/world.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/ml/ml.hpp"
//////////////////////////////////////////////////////////////////////////Load OpenCV lib
#ifdef _DEBUG
#pragma comment(lib,"opencv_world320d.lib")
#else
#pragma comment(lib,"opencv_world320.lib")
#endif
////////////////////////////////////////////////////////////////////////// ffmpeg 3.2.2
#define __STDC_CONSTANT_MACROS // ??
#if __cplusplus
extern "C"
{
#endif // __cplusplus
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "libavutil/avutil.h"
#include "libavutil/imgutils.h"
#include "libavutil/avutil.h"
#include "libswscale/swscale.h"
#include "libavutil/audio_fifo.h"
#include "libavutil/opt.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/avfiltergraph.h"
#include "libavfilter/buffersink.h"
#include "libavfilter/buffersrc.h"
#include "libavutil/pixdesc.h"
#include "libavutil/mathematics.h"
#include "libavutil/time.h"
#include "libavutil/samplefmt.h"
#if __cplusplus
}
#endif
#pragma comment(lib,"swscale.lib")
#pragma comment(lib,"swresample.lib")
#pragma comment(lib,"postproc.lib")
#pragma comment(lib,"avutil.lib")
#pragma comment(lib,"avformat.lib")
#pragma comment(lib,"avfilter.lib")
#pragma comment(lib,"avdevice.lib")
#pragma comment(lib,"avcodec.lib")

#include "tesseract/allheaders.h"
#include "tesseract/baseapi.h"

#ifdef _DEBUG
#pragma comment(lib,"liblept171d.lib")  //目前使用debug
#else
#pragma comment(lib,"liblept171.lib")  //目前使用debug
#endif
#pragma comment(lib,"libtesseract304.lib")  //

//////////////////////////////////////////////////////////////////////////
using std::mutex;
using std::vector;
using std::deque;
using std::string;
using std::stringstream;
using std::unique_ptr;
using std::ifstream;
using std::ios;
using std::thread;
using std::pair;
using std::map;
using std::cout;
using std::endl;

using cv::Mat;
using cv::Rect;
using cv::Scalar;
using cv::Point;
using cv::Size;
using cv::waitKey;
using cv::imread;
using cv::MORPH_RECT;
using cv::MORPH_OPEN;
using cv::MORPH_GRADIENT;